package com.ophiux.order.api.fallback;

import com.ophiux.order.api.feign.IOrderFeignApi;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * 进入fallback的方法 检查是否token未设置
 */
@Slf4j
public class OrderAPIFallback implements IOrderFeignApi {

    @Setter
    private Throwable cause;

    @Override
    public String createOrder() {
        log.error("发送消息失败 {}", cause);
        return null;
    }
}
